<template>
  <tab-bar id="tab-bar">
    <tab-bar-item path="/homePage">
      <img slot="item-icon" src="../../assets/imgs/tabbar/home.png" alt="">
      <img slot="item-icon-active" src="../../assets/imgs/tabbar/home-active.png" alt="">
      <div slot="item-text">首页</div>
    </tab-bar-item>
    <tab-bar-item path="/find">
      <img slot="item-icon" src="../../assets/imgs/tabbar/find.png" alt="">
      <img slot="item-icon-active" src="../../assets/imgs/tabbar/find-active.png" alt="">
      <div slot="item-text">发现</div>
    </tab-bar-item>
    <tab-bar-item path="/bookrack">
      <img slot="item-icon" src="../../assets/imgs/tabbar/book.png" alt="">
      <img slot="item-icon-active" src="../../assets/imgs/tabbar/book-active.png" alt="">
      <div slot="item-text">书架</div>
    </tab-bar-item>
    <tab-bar-item path="/profile">
      <img slot="item-icon" src="../../assets/imgs/tabbar/me.png" alt="">
      <img slot="item-icon-active" src="../../assets/imgs/tabbar/me-active.png" alt="">
      <div slot="item-text">我的</div>
    </tab-bar-item>
  </tab-bar>
</template>

<script>
  import TabBar from '../tabbar/TabBar'
  import TabBarItem from '../tabbar/TabBarItem'

  export default {
    name: "MainTabBar",
    components: {
      TabBar,
      TabBarItem
    }
  }
</script>

<style scoped>
#tab-bar{
  z-index: 1000;
  width: 100%;
}
</style>
